 
public class ex_3_5 { 
	public static void main(String[] args) { 
		int ken=2, boo=7, yoo=-7; 
		
		System.out.println("***** result *****\n"); 
		System.out.println("ken=2, boo=7, yoo=-7"); 
		System.out.println("--- bitwise AND ---"); 
		System.out.println("ken&boo -> " + (ken&boo)); 
		System.out.println("--- bitwise OR ---"); 
		System.out.println("ken|boo -> " + (ken|boo)); 
		System.out.println("--- bitwise XOR ---"); 
		System.out.println("ken^boo -> " + (ken^boo)); 
		System.out.println("--- complement ---"); 
		System.out.println("~ken    -> " + (~ken)); 
	}
}
